<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card shadow="never">
        <el-tabs v-model="activeName">
          <el-tab-pane label="企业信息" name="first">
            <!--form表单
                model ： 双向绑定的数据对象
            -->
            <el-form ref="form" :model="formData" label-width="200px">
              <el-form-item label="公司名称" >
                <el-input v-model="formData.name" style="width:300px" disabled></el-input>
              </el-form-item>
              <el-form-item label="公司地区" >
                <el-input v-model="formData.companyArea" style="width:300px" disabled></el-input>
              </el-form-item>
              <el-form-item label="公司地址">
                <el-input v-model="formData.companyAddress"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="审核状态">
                <el-input v-model="formData.auditStateDesc"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="法人代表">
                <el-input v-model="formData.legalRepresentative"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="公司电话">
                <el-input v-model="formData.companyPhone"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="邮件">
                <el-input v-model="formData.mailbox"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="公司规模">
                <el-input v-model="formData.companySize"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="所属行业">
                <el-input v-model="formData.industry"  style="width:300px"  disabled></el-input>
              </el-form-item>
              <el-form-item label="备注">
                <el-input v-model="formData.remarks"  style="width:300px" ></el-input>
              </el-form-item>
              <el-form-item>
                <el-button type="primary">审核</el-button>
                <el-button>拒绝</el-button>
              </el-form-item>
            </el-form>
          </el-tab-pane>
          <el-tab-pane label="账户信息" name="second">账户信息</el-tab-pane>
          <el-tab-pane label="交易记录" name="third">交易记录</el-tab-pane>
        </el-tabs>
      </el-card>
    </div>
  </div>
</template>

<script>
import {findById} from '@/api/base/saasClient'

export default {
  name: 'saas-clients-detail',
  data () {
    return {
      activeName: 'first',
      formData:{},
      params:{
        id:0
      }
    }
  },
  methods: {
    findById() {
      this.params.id=this.$route.params.id;
      findById(this.params).then(res => {
        this.formData = res.data.data
      })
    }
  },
  // 创建完毕状态
  created() {
    this.findById();
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.alert {
  margin: 10px 0 0 0;
}
.pagination {
  margin-top: 10px;
  text-align: right;
}
</style>
